package com.lgl.sqlSession;

import com.lgl.prjo.Configuration;
import com.lgl.prjo.MappedStatement;

import java.beans.IntrospectionException;
import java.lang.reflect.InvocationTargetException;
import java.sql.SQLException;
import java.util.List;

public interface IExecutor {
    public <E>List query(Configuration configuration, MappedStatement mappedStatement, Object... params) throws SQLException, IllegalAccessException, InstantiationException, InvocationTargetException, NoSuchFieldException, IntrospectionException, ClassNotFoundException;

    public int update(Configuration configuration, MappedStatement mappedStatement, Object... params) throws ClassNotFoundException, SQLException, IllegalAccessException, NoSuchFieldException;
}
